﻿using System;
using NDBGen.Descriptors;
using NDBGen.Plugins.DataAccess;

namespace NDBGen.Plugins.Descriptors
{
    public abstract class DotNetCodeGeneratorBase<TDescriptor> : CodeSnippetGeneratorBase<TDescriptor>, IDotNetCodeGenerator
        where TDescriptor : IDescriptor
    {
        protected virtual Object[] GenerateCustomAttributes()
        {
            return new Object[0];
        }

        public virtual Object[] GetAttributes()
        {
            return this.GenerateCustomAttributes();
        }
    }
}